package com.example.sonone.pojo;

/**
 *  实体类
 */
public class Order {

    private int orderId;

    private int productId;

    private int balance;

    private Double price;

    public Order() {
    }

    public Order(int orderId, int productId, int balance, Double price) {
        this.orderId = orderId;
        this.productId = productId;
        this.balance = balance;
        this.price = price;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", productId=" + productId +
                ", balance=" + balance +
                ", price=" + price +
                '}';
    }
}
